package com.chushouya.product.dto.api.evaluate;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;

@Data
@ApiModel("评估规则DTO")
public class EvaluateRuleDTO {

    @ApiModelProperty("规则名称")
    private String ruleName;

    @ApiModelProperty("规则详情")
    private String ruleDetail;

    @ApiModelProperty("调整前价格")
    private BigDecimal before;

    @ApiModelProperty("调整后价格")
    private BigDecimal after;

    @ApiModelProperty("价格变化")
    private BigDecimal change;

    /**
     * 构造函数
     */
    public EvaluateRuleDTO() {
    }

    /**
     * 带参构造函数
     */
    public EvaluateRuleDTO(String ruleName, String ruleDetail, BigDecimal before, BigDecimal after, BigDecimal change) {
        this.ruleName = ruleName;
        this.ruleDetail = ruleDetail;
        this.before = before;
        this.after = after;
        this.change = change;
    }
}
